from application import app


class UrlManager(object):
    @staticmethod
    def buildUrl(path):
        config_domain = app.config["DOMAIN"]
        return "{}{}".format(config_domain["www"], path)

    @staticmethod
    def buildStaticUrl(path):
        path = "static" + path
        return UrlManager.buildUrl(path)
